import { getDeviceUuid } from "../tokens/const";
import { getHttpPost } from "../tokens/http";

export interface IRegisterData {
    username: string;
    password: string;
    repassword: string;
}
export const register = async (data: IRegisterData) => {
    try {
        const httpPost = getHttpPost()
        const res = await httpPost('register', data)
        return res;
    } catch (e) {
        throw e;
    }
}